# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-picodrive
pkgver=0_git20200305
pkgrel=0
_commit="600894ec6eb657586a972a9ecd268f50907a279c"
pkgdesc="fast MegaDrive/MegaCD/32X emulator"
url="https://github.com/libretro/picodrive"
arch="all !aarch64 !ppc64le !s390x !mips !mips64"
license="custom"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/picodrive/archive/$_commit.tar.gz"
builddir="$srcdir/picodrive-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 picodrive_libretro.so "$pkgdir"/usr/lib/libretro/picodrive_libretro.so
}

sha512sums="66247cf73c60ae88a6bb8fa771b887b1a85b2260d951162670b7fa71dfca919b1a9775fde85557f74779a64b2bf179eef94af96511b11db3cc0a62d8e9bd9223  libretro-picodrive-600894ec6eb657586a972a9ecd268f50907a279c.tar.gz"
